<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <script src="http://mockjs.com/dist/mock.js"></script>
  <title>MockJS</title>
</head>
<body>
  var data = Mock.mock({
    "list|1-10": [
      {
        "id|+1": 1,
        "name": "@cname"
      }
    ] 
  })
  console.log(Json.Stringfy(data, null, 2))
</body>
</html>